Minimal Synthesis of String To String Functions From Examples
نویسندگان
چکیده
We study the problem of synthesizing string to string transformations from a set of input/output examples. The transformations we consider are expressed using deterministic finite automata (DFA) that read pairs of letters, one letter from the input and one from the output. The DFA corresponding to these transformations have additional constraints, ensuring that each input string is mapped to exactly one output string. We suggest that, given a set of input/output examples, the smallest DFA consistent with the examples is a good candidate for the transformation the user was expecting. We therefore study the problem of, given a set of examples, finding a minimal DFA consistent with the examples and satisfying the functionality and totality constraints mentioned above. We prove that, in general, this problem (the corresponding decision problem) is NP-complete. This is unlike the standard DFA minimization problem which can be solved in polynomial time. We provide several NP-hardness proofs that show the hardness of multiple (independent) variants of the problem. Finally, we propose an algorithm for finding the minimal DFA consistent with input/output examples, that uses a reduction to SMT solvers. We implemented the algorithm, and used it to evaluate the likelihood that the minimal DFA indeed corresponds to the DFA expected by the user.
منابع مشابه
محاسبه ساختار ستاره کوارکی
In this paper, we have considered that the strange-star consists of quark matter from its center to surface. For quark matter, we have used two models, the MIT bag model and string-flip like model. In the bag model, the energy of the system has been considered the kinetic energy of the particles of system in addition to a constant B. We have considered two states for B, one of them is constant...
متن کاملDEVELOPMENT IN STRING THEORY
The string theory is a fast moving subject, both physics wise and in the respect of mathematics. In order to keep up with the discipline it is important to move with new ideas which are being stressed. Here I wish to give extracts from new papers of ideas which I have recently found interesting. There are six papers which are involved: I ."Strings formulated directly in 4 dimensions " A. N...
متن کاملNonlinear Dynamics of the Rotational Slender Axially Moving String with Simply Supported Conditions
In this research, dynamic analysis of the rotational slender axially moving string is investigated. String assumed as Euler Bernoulli beam. The axial motion of the string, gyroscopic force and mass eccentricity were considered in the study. Equations of motion are derived using Hamilton’s principle, resulting in two partial differential equations for the transverse motions. The equations are ch...
متن کاملAsymptotic Approximations of the Solution for a Traveling String under Boundary Damping
Transversal vibrations of an axially moving string under boundary damping are investigated. Mathematically, it represents a homogenous linear partial differential equation subject to nonhomogeneous boundary conditions. The string is moving with a relatively (low) constant speed, which is considered to be positive. The string is kept fixed at the first end, while the other end is tied with the ...
متن کاملSELENIUM HETEROCYCLES XXXVIII [I]. SYNTHESIS AND ANTIMICROBIAL ACTIVITY OF 2-ARYLSELENAZOLES
STRING FROM substituted selenobenzamides (2) a series of 2- arylselenazoles (3-7) were prepared. The antibacterial activity of compounds 3-7 against a number of microorganisms were determined. Some of these compounds showed significant antibacterial activity
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- CoRR
دوره abs/1710.09208 شماره
صفحات -
تاریخ انتشار 2017